<?php
/* @var $this NewsController */
/* @var $dataProvider CActiveDataProvider */

$this->breadcrumbs=array(
	'News',
);

$this->menu=array(
	array('label'=>'Create News', 'url'=>array('create')),
	array('label'=>'Manage News', 'url'=>array('admin')),
);
?>

<div class="sub-page">
    <h2>Faq's</h2>
    <div class="all-product">
        <?php $i = 1; foreach ($model as $key => $data) { ?>
        <p class='qa-class'><strong><?=$i?>. <a class="questions" rel="<?=$i?>" href="#answer"><?=$data['question']?><input type="hidden" value="<p class='marT20'><?=$data['answer']?></p>" class="answer<?=$i?>" name="answer"></a></strong>

            <br /></p>
        <hr>
            <?php $i++; } ?>

        <div class="contact" id="answer">
            <div class="ct-title"> <h3 class="question-details"> <?= isset($model[0]['question'])?'1.'.$model[0]['question']:''?></h3> </div>
            <div class="answer-details"><p class="marT20"><?= isset($model[0]['answer'])?$model[0]['answer']:''?></p></div>

        </div>
    </div>

</div>
